<?php

namespace app\models;

class Cities extends ModelBase
{
    protected $pk = "id";

    public function province()
    {
        return $this->hasOne(Provinces::class,"provinceId","provinceId");
    }

    public function areas()
    {
        return $this->hasMany(Areas::class,"cityId","cityId");
    }
}